<div class="search—right">
    <div class="searchArea">
        <div class="search">
            <input id="searchparam" type="text" placeholder="请输入您要检索的词" />
        </div>
        <a href="javascript:jumlist()" class="button">检索</a>
    </div>
    <p id="headhotkey">
        <a href="javascript://">创新</a>
        <a href="javascript://">创业</a>
        <a href="javascript://">开心芝麻</a>
        <a href="javascript://">文化传播</a>
    </p>
</div>
<a href="index.html" class="logos"><img src="WebUI/images/logo.png" /></a>
<div class="logo_select">
    <!--<span>铜陵文化云<i class="icon iconfont xiala">&#xe60a;</i></span>-->
    <!--<ul>-->
        <!--<li>铜陵文化云</li>-->
        <!--<li class="e">蓝图文化云</li>-->
        <!--<li>北图文化云</li>-->
    <!--</ul>-->
</div>
<div class="fclear"></div>
<script>
      $(function () {
        //点击搜索按钮
        jumlist = function(){
          var searchparam = $("#searchparam").val();
          if(searchparam!=undefined && searchparam!= ""){
              window.location="list.html?key="+searchparam;
          }else{
            window.location="list.html";
          }
        }

        headhotkey=function(){
          var html = "";
          $.ajax({
              url:ROOTBASE+'search/hotkey?size=4',
              type:'GET',
              success:function(data,status,xhr){
                  console.log(data);
                  for(var i=0;i<data.content.length;i++){
                      var hot = data.content[i]
                      html += "<a href='javascript:void(0)' onClick='goSearch(\""+hot.key+"\")'>"+hot.key+"</a>";
                  }
                  $("#headhotkey").html(html);
              }
          });
        }
        headhotkey();
      })
</script>
